package com.example.jcservice.controller;

import com.example.jcservice.service.AppService;
import com.example.jcservice.stType.Send.AppInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.IOException;


@RestController
public class AppController {
    @Resource
    AppService appService;
    /**
     * 用来获取放在服务器的App的版本号
     *
     * @return*/
    @GetMapping("/getversion")
    public AppInfo getVersion() throws IOException {
        AppInfo appInfo = appService.getAppVersion();

        return appInfo;

    }
}
